from enum import IntEnum

class ExecResultEnum(IntEnum):
    INIT = 0                        # 未执行
    SUCCESS = 1                     # 完成
    NON_DATA = 2                    # 查无数据
    BOOKING_CANCEL = 3              # 订舱取消
    ROBOT_VERIFICATION_FAILURE = 4  # 人机校验失败
    WAYBILL_FORMAT_INVALID = 5      # 运单格式无效
    NULL_DATA = 6                   # 空数据
    EXECUTE_ABNORMAL_FAILURE = 7    # 执行异常失败
    UNDEFINED_FAILURE = 9           # 未定义失败

class CrawlerStatusEnum(IntEnum):
    INIT = 0                        # 未执行
    EXECUTING = 1                   # 执行中
    FINISH = 2                      # 完成
    ABNORMAL_DELAY = 3              # 异常延期
    FAILURE = 4                     # 失败

class CrawlerTypeEnum(IntEnum):
    OCEAN_WAYBILL = 1               # 航运单
    AIR_WAYBILL = 2                 # 空运单
    VOYAGE_ROUTE = 3                # 航线
    VESSEL_SCHEDULE = 4             # 船期
